<?php
require_once 'common.php';
if($_POST['action'] === 'login') {
	$_SESSION['admin'] = 'zhoulang';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="UTF-8">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="Content-Language" content="UTF-8" />
	<meta name="author" content="web@zhoulang.net,zhoulang" />
	<meta name="Copyright" content="SyueBlog CopyRight 2009" />
	<meta name="keywords" content="SyueBlog" />
	<meta name="description" content="zhoulang's BLOG" />
	<title>SyueBlog系统管理</title>
</head>
<?php if(isset($_SESSION['admin']) && $_SESSION['admin'] === 'zhoulang'):?>
	<frameset rows="31,*" framespacing="0" border="0" frameborder="0">
		<frame src="manageheader.php" scrolling="no" name="Head" noresize>
			<frameset  id="ContentSet" rows="80,*">
			<frame src="managemenu.php" name="Menu">
			<frame src="managecontent.php" name="MainContent" scrolling="yes" noresize>
		</frameset>
	</frameset>
<?php else:?>
	<body style="background:#E8EDF4">
		<form action="syue.php" method="post" style="margin:2px;">
		<input type="hidden" name="action" value="login"/>
		<div style="font-size:12px;text-align:center">
			<div style="margin:auto;border:1px solid #999;padding:2px;background:#fff;width:350px;">
				<div style="border:1px solid #e5e5e5;padding:2px;">
					<div style="border-bottom:1px solid #e5e5e5;padding:5px;text-align:left">
						<img src="images/Control/logo.gif"/>
					</div>
					<div style="padding:16px;padding-top:40px">
						<b style="margin-left:-146px;font-size:14px;">管理员密码: </b><br/><br/>
						<input name="adpass" type="password" size="20" style="border:1px solid #999;font-size:18px"/>
					</div>
					<input type="submit" value=" 登 陆 " style="background:#fff;border:1px solid #999;padding:2px 2px 0px 2px;margin:4px;border-width:1px 3px 1px 3px"/>
					<div style="padding:2px;font-family:arial;color:#666;font-size:9px;text-align:right">
						<b>SyueBlog v<?php echo SYUEBLOG_VERSION;?></b>
					</div>
				</div>
			</div>
		</div>
		</form>
	</body>
<?php endif;?>
</html>